home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
mac
/
FILES
/
EDISON.DIR
/
00580_Script_Kinetoscope obj
< prev
next >
Wrap
Text File
|
1997-05-26
|
4KB
|
132 lines
--p Kinetoscope Obj
--instantiated as gKinetoscopeObj
property pStartSprite, pInterfaceCast, pLoadDB, pMovieBaseCast, pMovieSprite, pHotSpotRect
property pRolloverStartsprite, pRolloverEndSprite, plabels, pRolloverActive
global gScoreEventObj, gSndPath, gInterfaceMgrObj
----------------------------------------------------------------------------------------------------
on mInit me
set pRolloverStartsprite = 12
set pRolloverEndSprite = 14
set plabels = the text of cast "Kinetoscope labels"
set pStartSprite = 7
set pMovieBaseCast = the number of cast "EKSVID1.MOV"
set pMovieSprite = 23
set pHotSpotRect = rect(486, 11, 613, 70)
mSetToolBtns (gInterfaceMgrObj, #KINETOSCOPE, me)
return( me )
end mInit
----------------------------------------------------------------------------------------------------
on mActivate me
sound stop 1
puppetSprite pMovieSprite, true
updatestage
set the movierate of sprite pMovieSprite = 1
updatestage
end mActivate
----------------------------------------------------------------------------------------------------
on mClose me
mClearToolHilite (gInterfaceMgrObj)
puppetSprite pMovieSprite, false
end mClose
-----------------------------------------------------------------<<ò>>
on mPerform me
if pRolloverActive then
set spritetoCheck = pRolloverStartsprite
set found = FALSE
repeat while (not found) and (spritetoCheck <= pRolloverEndSprite)
if rollover(spritetoCheck) then
set labelText = line (spritetoCheck - pRolloverStartsprite + 1) of plabels
mSetLabelText( gUtilityObj, labelText)
set found = TRUE
end if
set spritetoCheck = spritetoCheck + 1
end repeat
end if
go the frame
end mPerform
-----------------------------------------------------------------<<ò>>
on mChangeMovie me, WhatMovie
-- puppetsprite 35, true
-- set the castnum of sprite 35 = the number of cast WhatMovie
end mChangeMovie
----------------------------------------------------------------------------------------------------
on mExitPeepHole me
mclose(me)
go frame "EKS2"
end mExitPeepHole
----------------------------------------------------------------------------------------------------
on mReturnToStructure me
mclose(me)
mStopMovAndPullOut(gScoreEventObj, pMovieSprite)
end mReturnToStructure
----------------------------------------------------------------------------------------------------
on mSetKinetoscopeCursors me
set pRolloverActive = TRUE
mUnsetAllCursors(gUtilityObj)
mSetCursors(gUtilityObj, [12:#ZoomIn, 13:#ZoomIn, 14:#Operate, 21:#Return, 22:#Return])
end mSetKinetoscopeCursors
----------------------------------------------------------------------------------------------------
on mResetCursors me
mUnsetAllCursors(gUtilityObj)
mSetCursors(gUtilityObj, [ 21:#Return, 22:#Return])
end mResetCursors
----------------------------------------------------------------------------------------------------
on mOperate me, whatSelection
puppetSprite pMovieSprite, false
--set the castnum of sprite pMovieSprite = 0
go "EKS3"
mClearToolHilite (gInterfaceMgrObj)
end mOperate
----------------------------------------------------------------------------------------------------
on mZoom me, whatSelection
puppetsprite pMovieSprite, false
set the locv of sprite pMovieSprite = -1000
go "EKS4"
mClearToolHilite (gInterfaceMgrObj)
end mZoom
----------------------------------------------------------------------------------------------------
on mLoad me, WhatSelection
sound stop 1
set the visible of sprite pMovieSprite = FALSE
go "EKS5"
set the castNum of sprite pMovieSprite = pMovieBaseCast + WhatSelection - 1
updatestage
set the visible of sprite pMovieSprite = TRUE
mClearToolHilite (gInterfaceMgrObj)
set the movierate of sprite pMovieSprite = 1
end mLoad
----------------------------------------------------------------------------------------------------